﻿#region itdc

/************************************************************************
*Copyright(C) 2015 by qsgy
 *All rights reserved. 
 *FileName:     $safeitemname$
 *Author:       oyh
 *Version:      
 *UnityVersion：
 *Date:   $time$      
 *Description:  一次播放的粒子效果自动销毁脚本
 *History: 
************************************************************************/
#endregion

using UnityEngine;

public class AutoDestroy : NextRunner {
    [SerializeField,Tooltip("存在时间"),Range(0,100f),Header("存在时间")]
    float deadTime = 5f;
    private void Start()
    {
        Destroy(gameObject, deadTime);
    }
}
